﻿using System;
using System.Data;
using System.Collections.Generic;
using OgilvyOne.Model;
using OgilvyOne.DALFactory;
using OgilvyOne.IDAL;


namespace OgilvyOne.BLL
{
    public class TypeManageBll
    {

        /// <summary>
        /// 增加一条数据
        /// </summary>
        public int Add(OgilvyOne.Model.TypeManageModel model)
        {
            return TypeManageFactory.create().Add(model);
        }

        /// <summary>
        /// 更新一条数据
        /// </summary>
        public int updateType(TypeManageModel tmm)
        {
            return TypeManageFactory.create().updateType(tmm);
        }
        /// <summary>
        /// 删除一条数据
        /// </summary>
        public bool Delete(int COLUMNTYPEID)
        {
            return TypeManageFactory.create().Delete(COLUMNTYPEID);
        }
        /// <summary>
        /// 获得数据列表
        /// </summary>
        public DataSet GetList(string strWhere)
        {
            
            return TypeManageFactory.create().GetList(strWhere);
        }

        public TypeManageModel selectType(int tpid)
        {
            return TypeManageFactory.create().selectType(tpid);
        }
        
    }
}
